<a class="menu-toggler" id="menu-toggler" href="#">
  <span class="menu-text"></span>
</a>

<div class="sidebar" id="sidebar">
  <script type="text/javascript">
    try { ace.settings.check('sidebar' , 'fixed') }catch(e) {  }
  </script>
  <ul class="nav nav-list">
    {if $account->checkPermission(['role.list', 'admin.list'], 'or')}
    <li {if $router['controller'] == 'user'} class="active open"{/if}>
      <a href="#" class="dropdown-toggle">
        <i class="icon-list"></i>
        <span class="menu-text"> 用户设置 </span>
        <b class="arrow icon-angle-down"></b>
      </a>
      <ul class="submenu">
        {if $account->checkPermission(['role.list'])}
          <li {if $path == 'admin/user/role'} class="active"{/if}>
            <a href="{url('admin/user/role')}"><i class="icon-double-angle-right"></i>角色管理</a>
          </li>
        {/if}
        {if $account->checkPermission(['admin.list'])}
          <li {if $path == 'admin/user/index'} class="active"{/if}>
            <a href="{url('admin/user')}"><i class="icon-double-angle-right"></i>用户管理</a>
          </li>
        {/if}
      </ul>
    </li>
    {/if}
    {if $account->checkPermission(['store.item.list', 'store.itemcate.list'], 'or')}
    <li {if $router['controller'] == 'store'} class="active open"{/if}>
      <a href="#" class="dropdown-toggle">
        <i class="icon-list"></i>
        <span class="menu-text"> 店铺设置 </span>
        <b class="arrow icon-angle-down"></b>
      </a>
      <ul class="submenu">
        {if $account->checkPermission(['store.itemcate.list'])}
          <li {if $path == 'admin/store/cate'} class="active"{/if}>
            <a href="{url('admin/store/cate')}"><i class="icon-double-angle-right"></i>商品分类</a>
          </li>
        {/if}
        {if $account->checkPermission(['store.item.list'])}
          <li {if $path == 'admin/store/item'} class="active"{/if}>
            <a href="{url('admin/store/item')}"><i class="icon-double-angle-right"></i>商品管理</a>
          </li>
        {/if}
      </ul>
    </li>
    {/if}



<li {if $router['controller'] == 'gift'} class="active open"{/if}>
  <a href="#" class="dropdown-toggle">
    <i class="icon-list"></i>
    <span class="menu-text"> 礼品管理 </span>
    <b class="arrow icon-angle-down"></b>
  </a>
  <ul class="submenu">
    <li {if $path == 'admin/gift/list'} class="active"{/if}>
      <a href="{url('admin/gift/list')}"><i class="icon-double-angle-right"></i>礼品列表</a>
    </li>
    <li {if $path == 'admin/gift/exchange'} class="active"{/if}>
      <a href="{url('admin/gift/exchange')}"><i class="icon-double-angle-right"></i>礼品兑换</a>
    </li>
  </ul>
</li>


<li {if $router['controller'] == 'player'} class="active open"{/if}>
  <a href="#" class="dropdown-toggle">
    <i class="icon-list"></i>
    <span class="menu-text"> 玩家中心 </span>
    <b class="arrow icon-angle-down"></b>
  </a>
  <ul class="submenu">
    <li {if $path == 'admin/player/list'} class="active"{/if}>
      <a href="{url('admin/player/list')}"><i class="icon-double-angle-right"></i>玩家列表</a>
    </li>
    <li {if $path == 'admin/player/comment'} class="active"{/if}>
      <a href="{url('admin/player/comment')}"><i class="icon-double-angle-right"></i>留言管理</a>
    </li>
    <li {if $path == 'admin/player/luckydraw'} class="active"{/if}>
      <a href="{url('admin/player/luckydraw')}"><i class="icon-double-angle-right"></i>抽奖管理</a>
    </li>
  </ul>
</li>

<li {if $router['controller'] == 'advertise'} class="active open"{/if}>
  <a href="#" class="dropdown-toggle">
    <i class="icon-list"></i>
    <span class="menu-text"> 广告管理 </span>
    <b class="arrow icon-angle-down"></b>
  </a>
  <ul class="submenu">
    <li {if $path == 'admin/advertise/list'} class="active"{/if}>
      <a href="{url('admin/advertise/list')}"><i class="icon-double-angle-right"></i>广告列表</a>
    </li>
  </ul>
</li>




  </ul>

  <div class="sidebar-collapse" id="sidebar-collapse">
    <i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
  </div>

  <script type="text/javascript">
    try { ace.settings.check('sidebar' , 'collapsed') }catch(e) {  }
  </script>
</div>


